package com.ys.service.mail;

import com.ys.vo.R;

import lombok.AllArgsConstructor;
import lombok.Data;

public interface MailService {
	
	R sendMail(Long draftId,
			String title, Integer emergent, String detail,
			String receiverArr,
			String copyerArr,
			String tagArr);
	
	R delete(Long id, String type);
	
	R readBatchFromInbox(String ids);
	
	R deleteBatchFromInbox(String ids);
	
	R deleteBatchFromDraft(String ids);
	
	R deleteBatchFromOutbox(String ids);
	
	R rebackBatchFromDustbin(String ids);
	
	R detail(Long id, String type);
	@Data
	@AllArgsConstructor
	public static class GetContentDto{
		private Long id;
		private String type; // 类型，见Enum
		private String title; // 邮件标题
		private String extraFile; // 附件信息
		private String senderUserId; // 发件人工号
		private String senderUserName; // 发件人姓名
		private String createTime; // 发送时间
		private String receivers; // 收件人数组
		private String content; // 邮件详情
		
	}
}